package com.ks.gopush.cli;

public class PushMessage {


	/**
	 * msg : {"aps":{"alert":"1204測試dd.","sound":"default"}}
	 */

	private MsgBean msg;

	/**
	 * 默认构造器
	 */
	public PushMessage() {

	}

	public long getMid() {
		return mid;
	}

	public void setMid(long mid) {
		this.mid = mid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}

	public boolean isPub() {
		return gid == 0;
	}

	private long mid;
	private int gid;

	public MsgBean getMsg() {
		return msg;
	}

	public void setMsg(MsgBean msg) {
		this.msg = msg;
	}

	public static class MsgBean {
		/**
		 * aps : {"alert":"1204測試dd.","sound":"default"}
		 */

		private ApsBean aps;

		public ApsBean getAps() {
			return aps;
		}

		public void setAps(ApsBean aps) {
			this.aps = aps;
		}

		public static class ApsBean {
			/**
			 * alert : 1204測試dd.
			 * sound : default
			 */

			private String alert;
			private String sound;
			private String type;

			public String getType() {
				return type;
			}

			public void setType(String type) {
				this.type = type;
			}

			public String getAlert() {
				return alert;
			}

			public void setAlert(String alert) {
				this.alert = alert;
			}

			public String getSound() {
				return sound;
			}

			public void setSound(String sound) {
				this.sound = sound;
			}
		}
	}
}
